package com.songcha.library_common.util

import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context

class ClipboardUtil {
    companion object{
        @JvmStatic
        fun copyText(context:Context,text:String){
            val clipData = ClipData.newPlainText("text", text)
            val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
            clipboardManager.setPrimaryClip(clipData)
        }
    }
}